import { PORT1 } from "@/api/config/servicePort";
import Http from "@/api/index";

const baseUrl = PORT1 + "/system/broker";

export const sendGold = (params: any) => {
  return Http.post(baseUrl + "/gold", params);
};

export const getBrokerList = (params: any) => {
  return Http.get(baseUrl + "/list", params);
};

export const createBrokerList = (params: any) => {
  return Http.post(baseUrl + "/add", params);
};

export const editBrokerList = (params: any) => {
  return Http.put(baseUrl + "/edit", params);
};

export const operaLouPan = (params: any) => {
  return Http.post(baseUrl + "/loupan", params);
};

export const getLous = (params: any) => {
  return Http.get(baseUrl + "/lous", params);
};

export const deleteBroker = (params: any) => {
  return Http.post(baseUrl + "/delete", params);
};

export const changeStatus = (params: any) => {
  return Http.put(baseUrl + "/status", params);
};
